package com.jn.factory.absfactory.pizzastore.order;

import com.jn.factory.absfactory.pizzastore.pizza.CheesePizza;
import com.jn.factory.absfactory.pizzastore.pizza.Pizza;

/**
 * @author 江南大学1033190417
 * @date 2022/4/11 16:33
 */
public class BJFactory implements AbsFactory{

    @Override
    public Pizza create(String orderType) {
        Pizza pizza=null;
        if (orderType.equals("bjcheese0")){
            pizza=new CheesePizza();
        }else if (orderType.equals("bjcheese1")){
            pizza=new CheesePizza();
        }
        return null;
    }
}
